package com.stations.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.stations.domain.SysRegion;
import com.stations.mapper.SysRegionMapper;
import com.stations.service.SysRegionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Describe: 区域服务实现类
 * Author: Ljy
 * CreateTime: 2019/10/23
 */
@Service
public class SysRegionServiceImpl extends ServiceImpl<SysRegionMapper, SysRegion> implements SysRegionService {
    @Resource
    SysRegionMapper sysRegionMapper;
    @Override
    public List<SysRegion> list(SysRegion sysRegion){
        QueryWrapper<SysRegion> objectQueryWrapper = new QueryWrapper<>();
        objectQueryWrapper.le("lev",4);
        return sysRegionMapper.selectList(objectQueryWrapper);
    }
}
